package com.chang.dp.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

@TableName("book_section")
@Data
public class BookSectionEntity {
    @JsonSerialize(using= ToStringSerializer.class)
    @TableId
    private Long id;
    private Long bookId;
    private String title;
    private String content;
    private Integer pageNumber;
    private String subject;
}
